#!/bin/bash

echo "Using this python: `pyenv which python`"

echo 'Deleting existing .venv ...'
rm -rf .venv

echo 'Creating fresh .venv ...'
python3 -m venv .venv
source .venv/bin/activate

echo 'Upgrading pip ...'
pip install --upgrade pip

echo 'Installing pip-tools ...'
pip install pip-tools

echo 'Pinning dependencies with piptools...'
bin/pin-deps

echo 'Installing dependencies with piptools...'
bin/install-deps
